﻿@model IEnumerable<Projeto.Models.CodigoQR>

@{
    ViewBag.Title = "Códigos QR";
}

<h2>Códigos QR</h2>

<p>
    @Html.ActionLink("Cadastrar", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Nome)
        </th>
        <th>Alterar</th>
        <th>Excluir</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.Nome, "Details", new { id = item.Id })
        </td>
        <td>
            @Html.ActionLink("Alterar", "Edit", new { id = item.Id })
        </td>
        <td>
            @Html.ActionLink("Delete", "Delete", new { id = item.Id })
        </td>
    </tr>
}

</table>
